package day06;

class Employee {
    private String eid;
    private String name;
    private String job;

    public Employee() {
    }

    public Employee(String eid, String name, String job) {
        this.eid = eid;
        this.name = name;
        this.job = job;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getEid() {
        return eid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getJob() {
        return job;
    }

    public void show() {
        System.out.println("员工编号：" + this.getEid() + " 姓名：" + this.getName() + " 职位：" + this.getJob());
    }
}

public class EmployeeDemo {
    
    public static void main(String[] args) {
        //无参
        Employee e = new Employee();
        e.setEid("10001");
        e.setName("zhang");
        e.setJob("Software Engineer");
        e.show();

        // 带参
        Employee e2 = new Employee("10002", "andy", "PHPer");
        e2.show();
    }
    
}
